<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>DepthSense SDK: DepthSense::ProjectionHelper Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="logo_softkinetic-198x55.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">DepthSense SDK
   
   </div>
   <div id="projectbrief">The DepthSense Software Development Kit</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Properties</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespaceDepthSense.html">DepthSense</a>      </li>
      <li class="navelem"><a class="el" href="classDepthSense_1_1ProjectionHelper.html">ProjectionHelper</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">DepthSense::ProjectionHelper Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<!-- doxytag: class="DepthSense::ProjectionHelper" -->
<p>Computes the <a class="el" href="structDepthSense_1_1UV.html" title="UV coordinates.">UV</a> mapping of image points.  
 <a href="classDepthSense_1_1ProjectionHelper.html#details">More...</a></p>

<p><a href="classDepthSense_1_1ProjectionHelper-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDepthSense_1_1ProjectionHelper.html#af2950147a121ee337710b6fb1e273a7a">get2DCoordinates</a> (const <a class="el" href="structDepthSense_1_1Vertex.html">Vertex</a> *input, <a class="el" href="structDepthSense_1_1Point2D.html">Point2D</a> *output, int32_t npoints, <a class="el" href="namespaceDepthSense.html#a57c659d5e702016bb71c489d83c40a6c">CameraPlane</a> plane)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Computes the 2D coordinates of a <a class="el" href="structDepthSense_1_1Vertex.html" title="A point in space as defined by its integer coordinates.">Vertex</a> set.  <a href="#af2950147a121ee337710b6fb1e273a7a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDepthSense_1_1ProjectionHelper.html#a225160b2159f45ed7e5685b9dcba0d3d">get2DCoordinates</a> (const <a class="el" href="structDepthSense_1_1FPVertex.html">FPVertex</a> *input, <a class="el" href="structDepthSense_1_1Point2D.html">Point2D</a> *output, int32_t npoints, <a class="el" href="namespaceDepthSense.html#a57c659d5e702016bb71c489d83c40a6c">CameraPlane</a> plane)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Computes the 2D coordinates of a <a class="el" href="structDepthSense_1_1FPVertex.html" title="A point in space as defined by its floating point coordinates.">FPVertex</a> set.  <a href="#a225160b2159f45ed7e5685b9dcba0d3d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDepthSense_1_1ProjectionHelper.html#a9b59832148de3f56db2d8ba9a51cc418">get3DCoordinates</a> (const <a class="el" href="structDepthSense_1_1Extended2DPoint.html">Extended2DPoint</a> *input, <a class="el" href="structDepthSense_1_1Vertex.html">Vertex</a> *output, int32_t npoints)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Computes the 3D coordinates of an <a class="el" href="structDepthSense_1_1Extended2DPoint.html" title="A point in the cartesian space as defined by its floating point pixel coordinates, and its integral cartesian depth.">Extended2DPoint</a> set.  <a href="#a9b59832148de3f56db2d8ba9a51cc418"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDepthSense_1_1ProjectionHelper.html#aea502846d0bfe89038f063594ab5aa27">get3DCoordinates</a> (const <a class="el" href="structDepthSense_1_1FPExtended2DPoint.html">FPExtended2DPoint</a> *input, <a class="el" href="structDepthSense_1_1FPVertex.html">FPVertex</a> *output, int32_t npoints)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Computes the 3D coordinates of a <a class="el" href="structDepthSense_1_1FPExtended2DPoint.html" title="A point in the cartesian space as defined by its floating point pixel coordinates, and its floating point cartesian depth.">FPExtended2DPoint</a> set.  <a href="#aea502846d0bfe89038f063594ab5aa27"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structDepthSense_1_1StereoCameraParameters.html">StereoCameraParameters</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDepthSense_1_1ProjectionHelper.html#aa8d6978f9f822b0e6e861f61b6e83177">getStereoCameraParameters</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the system model parameters.  <a href="#aa8d6978f9f822b0e6e861f61b6e83177"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDepthSense_1_1ProjectionHelper.html#a87c71ad33fcc20ff195afb4ab7d8384e">getUVMapping</a> (const <a class="el" href="structDepthSense_1_1Extended2DPoint.html">Extended2DPoint</a> *input, <a class="el" href="structDepthSense_1_1UV.html">UV</a> *output, int32_t npoints)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Computes the <a class="el" href="structDepthSense_1_1UV.html" title="UV coordinates.">UV</a> mapping of an <a class="el" href="structDepthSense_1_1Extended2DPoint.html" title="A point in the cartesian space as defined by its floating point pixel coordinates, and its integral cartesian depth.">Extended2DPoint</a> set.  <a href="#a87c71ad33fcc20ff195afb4ab7d8384e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDepthSense_1_1ProjectionHelper.html#a31869d0d41006e456614154b5581dce5">getUVMapping</a> (const <a class="el" href="structDepthSense_1_1FPExtended2DPoint.html">FPExtended2DPoint</a> *input, <a class="el" href="structDepthSense_1_1UV.html">UV</a> *output, int32_t npoints)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Computes the <a class="el" href="structDepthSense_1_1UV.html" title="UV coordinates.">UV</a> mapping of a <a class="el" href="structDepthSense_1_1FPExtended2DPoint.html" title="A point in the cartesian space as defined by its floating point pixel coordinates, and its floating point cartesian depth.">FPExtended2DPoint</a> set.  <a href="#a31869d0d41006e456614154b5581dce5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDepthSense_1_1ProjectionHelper.html#a463a4ce130295ac6d672168d5edb17c8">ProjectionHelper</a> (<a class="el" href="structDepthSense_1_1StereoCameraParameters.html">StereoCameraParameters</a> parameters)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Instantiates a <a class="el" href="classDepthSense_1_1ProjectionHelper.html" title="Computes the UV mapping of image points.">ProjectionHelper</a>.  <a href="#a463a4ce130295ac6d672168d5edb17c8"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDepthSense_1_1ProjectionHelper.html#a76554ed0ef4add10cbe3d2934091f064">setStereoCameraParameters</a> (<a class="el" href="structDepthSense_1_1StereoCameraParameters.html">StereoCameraParameters</a> parameters)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the system model parameters.  <a href="#a76554ed0ef4add10cbe3d2934091f064"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>The <a class="el" href="classDepthSense_1_1ProjectionHelper.html" title="Computes the UV mapping of image points.">ProjectionHelper</a> class computes the <a class="el" href="structDepthSense_1_1UV.html" title="UV coordinates.">UV</a> mapping of a set of image points. </p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a463a4ce130295ac6d672168d5edb17c8"></a><!-- doxytag: member="DepthSense::ProjectionHelper::ProjectionHelper" ref="a463a4ce130295ac6d672168d5edb17c8" args="(StereoCameraParameters parameters)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classDepthSense_1_1ProjectionHelper.html#a463a4ce130295ac6d672168d5edb17c8">DepthSense::ProjectionHelper::ProjectionHelper</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structDepthSense_1_1StereoCameraParameters.html">StereoCameraParameters</a>&#160;</td>
          <td class="paramname"><em>parameters</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Creates a new instance of the <a class="el" href="classDepthSense_1_1ProjectionHelper.html" title="Computes the UV mapping of image points.">ProjectionHelper</a> class.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">parameters</td><td>the system model parameters to use (see <a class="el" href="structDepthSense_1_1DepthNode_1_1NewSampleReceivedData.html#ae20a845a532360ca419ba267a088c87f" title="the system model parameters that were in effect at the time of capture">DepthSense::DepthNode::NewSampleReceivedData::stereoCameraParameters</a>)</td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt><b>Exceptions:</b></dt><dd>
  <table class="exception">
    <tr><td class="paramname">std::bad_alloc</td><td>not enough memory to perform the requested operation </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="af2950147a121ee337710b6fb1e273a7a"></a><!-- doxytag: member="DepthSense::ProjectionHelper::get2DCoordinates" ref="af2950147a121ee337710b6fb1e273a7a" args="(const Vertex *input, Point2D *output, int32_t npoints, CameraPlane plane)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classDepthSense_1_1ProjectionHelper.html#af2950147a121ee337710b6fb1e273a7a">DepthSense::ProjectionHelper::get2DCoordinates</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structDepthSense_1_1Vertex.html">Vertex</a> *&#160;</td>
          <td class="paramname"><em>input</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structDepthSense_1_1Point2D.html">Point2D</a> *&#160;</td>
          <td class="paramname"><em>output</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>npoints</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceDepthSense.html#a57c659d5e702016bb71c489d83c40a6c">CameraPlane</a>&#160;</td>
          <td class="paramname"><em>plane</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Computes the 2D coordinates of a <a class="el" href="structDepthSense_1_1Vertex.html" title="A point in space as defined by its integer coordinates.">Vertex</a> set on one camera plane. If a point lies outside of the field of view of the camera, the distortion coefficient is assumed to be the one of the last point within the field of view.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">input</td><td>a <a class="el" href="structDepthSense_1_1Vertex.html" title="A point in space as defined by its integer coordinates.">Vertex</a> array </td></tr>
    <tr><td class="paramname">output</td><td>an user-allocated array of 2D points </td></tr>
    <tr><td class="paramname">npoints</td><td>the number of points to be transformed </td></tr>
    <tr><td class="paramname">plane</td><td>the plane to project on</td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt><b>Exceptions:</b></dt><dd>
  <table class="exception">
    <tr><td class="paramname">std::bad_alloc</td><td>not enough memory to perform the requested operation </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a225160b2159f45ed7e5685b9dcba0d3d"></a><!-- doxytag: member="DepthSense::ProjectionHelper::get2DCoordinates" ref="a225160b2159f45ed7e5685b9dcba0d3d" args="(const FPVertex *input, Point2D *output, int32_t npoints, CameraPlane plane)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classDepthSense_1_1ProjectionHelper.html#af2950147a121ee337710b6fb1e273a7a">DepthSense::ProjectionHelper::get2DCoordinates</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structDepthSense_1_1FPVertex.html">FPVertex</a> *&#160;</td>
          <td class="paramname"><em>input</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structDepthSense_1_1Point2D.html">Point2D</a> *&#160;</td>
          <td class="paramname"><em>output</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>npoints</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceDepthSense.html#a57c659d5e702016bb71c489d83c40a6c">CameraPlane</a>&#160;</td>
          <td class="paramname"><em>plane</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Computes the 2D coordinates of a <a class="el" href="structDepthSense_1_1FPVertex.html" title="A point in space as defined by its floating point coordinates.">FPVertex</a> set on one camera plane. If a point lies outside of the field of view of the camera, the distortion coefficient is assumed to be the one of the last point within the field of view.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">input</td><td>a <a class="el" href="structDepthSense_1_1FPVertex.html" title="A point in space as defined by its floating point coordinates.">FPVertex</a> array </td></tr>
    <tr><td class="paramname">output</td><td>an user-allocated array of 2D points </td></tr>
    <tr><td class="paramname">npoints</td><td>the number of points to be transformed </td></tr>
    <tr><td class="paramname">plane</td><td>the plane to project on</td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt><b>Exceptions:</b></dt><dd>
  <table class="exception">
    <tr><td class="paramname">std::bad_alloc</td><td>not enough memory to perform the requested operation </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a9b59832148de3f56db2d8ba9a51cc418"></a><!-- doxytag: member="DepthSense::ProjectionHelper::get3DCoordinates" ref="a9b59832148de3f56db2d8ba9a51cc418" args="(const Extended2DPoint *input, Vertex *output, int32_t npoints)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classDepthSense_1_1ProjectionHelper.html#a9b59832148de3f56db2d8ba9a51cc418">DepthSense::ProjectionHelper::get3DCoordinates</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structDepthSense_1_1Extended2DPoint.html">Extended2DPoint</a> *&#160;</td>
          <td class="paramname"><em>input</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structDepthSense_1_1Vertex.html">Vertex</a> *&#160;</td>
          <td class="paramname"><em>output</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>npoints</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Computes the 3D coordinates of an <a class="el" href="structDepthSense_1_1Extended2DPoint.html" title="A point in the cartesian space as defined by its floating point pixel coordinates, and its integral cartesian depth.">Extended2DPoint</a> set. If a point lies outside of the field of view of the camera, the distortion coefficient is assumed to be the one of the last point within the field of view.</p>
<p>The depth of each <a class="el" href="structDepthSense_1_1Extended2DPoint.html" title="A point in the cartesian space as defined by its floating point pixel coordinates, and its integral cartesian depth.">Extended2DPoint</a> should lie in the range [0 - 31999], otherwise the corresponding 3D output point will be mapped to {0, 0, input[i].z}.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">input</td><td>an <a class="el" href="structDepthSense_1_1Extended2DPoint.html" title="A point in the cartesian space as defined by its floating point pixel coordinates, and its integral cartesian depth.">Extended2DPoint</a> array </td></tr>
    <tr><td class="paramname">output</td><td>an user-allocated array of 3D points </td></tr>
    <tr><td class="paramname">npoints</td><td>the number of points to be transformed</td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt><b>Exceptions:</b></dt><dd>
  <table class="exception">
    <tr><td class="paramname">std::bad_alloc</td><td>not enough memory to perform the requested operation </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="aea502846d0bfe89038f063594ab5aa27"></a><!-- doxytag: member="DepthSense::ProjectionHelper::get3DCoordinates" ref="aea502846d0bfe89038f063594ab5aa27" args="(const FPExtended2DPoint *input, FPVertex *output, int32_t npoints)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classDepthSense_1_1ProjectionHelper.html#a9b59832148de3f56db2d8ba9a51cc418">DepthSense::ProjectionHelper::get3DCoordinates</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structDepthSense_1_1FPExtended2DPoint.html">FPExtended2DPoint</a> *&#160;</td>
          <td class="paramname"><em>input</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structDepthSense_1_1FPVertex.html">FPVertex</a> *&#160;</td>
          <td class="paramname"><em>output</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>npoints</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Computes the 3D coordinates of a <a class="el" href="structDepthSense_1_1FPExtended2DPoint.html" title="A point in the cartesian space as defined by its floating point pixel coordinates, and its floating point cartesian depth.">FPExtended2DPoint</a> set. If a point lies outside of the field of view of the camera, the distortion coefficient is assumed to be the one of the last point within the field of view.</p>
<p>The depth of each <a class="el" href="structDepthSense_1_1FPExtended2DPoint.html" title="A point in the cartesian space as defined by its floating point pixel coordinates, and its floating point cartesian depth.">FPExtended2DPoint</a> should be greater than 0.0, otherwise the corresponding 3D output point will be mapped to {0.0, 0.0, input[i].z}.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">input</td><td>a <a class="el" href="structDepthSense_1_1FPExtended2DPoint.html" title="A point in the cartesian space as defined by its floating point pixel coordinates, and its floating point cartesian depth.">FPExtended2DPoint</a> array </td></tr>
    <tr><td class="paramname">output</td><td>an user-allocated array of 3D points </td></tr>
    <tr><td class="paramname">npoints</td><td>the number of points to be transformed</td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt><b>Exceptions:</b></dt><dd>
  <table class="exception">
    <tr><td class="paramname">std::bad_alloc</td><td>not enough memory to perform the requested operation </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="aa8d6978f9f822b0e6e861f61b6e83177"></a><!-- doxytag: member="DepthSense::ProjectionHelper::getStereoCameraParameters" ref="aa8d6978f9f822b0e6e861f61b6e83177" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structDepthSense_1_1StereoCameraParameters.html">StereoCameraParameters</a> <a class="el" href="classDepthSense_1_1ProjectionHelper.html#aa8d6978f9f822b0e6e861f61b6e83177">DepthSense::ProjectionHelper::getStereoCameraParameters</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Gets the system model parameters used in the computations.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the system model parameters currently in use</dd></dl>
<dl class="exception"><dt><b>Exceptions:</b></dt><dd>
  <table class="exception">
    <tr><td class="paramname">std::bad_alloc</td><td>not enough memory to perform the requested operation </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a87c71ad33fcc20ff195afb4ab7d8384e"></a><!-- doxytag: member="DepthSense::ProjectionHelper::getUVMapping" ref="a87c71ad33fcc20ff195afb4ab7d8384e" args="(const Extended2DPoint *input, UV *output, int32_t npoints)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classDepthSense_1_1ProjectionHelper.html#a87c71ad33fcc20ff195afb4ab7d8384e">DepthSense::ProjectionHelper::getUVMapping</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structDepthSense_1_1Extended2DPoint.html">Extended2DPoint</a> *&#160;</td>
          <td class="paramname"><em>input</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structDepthSense_1_1UV.html">UV</a> *&#160;</td>
          <td class="paramname"><em>output</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>npoints</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Computes the <a class="el" href="structDepthSense_1_1UV.html" title="UV coordinates.">UV</a> mapping of an <a class="el" href="structDepthSense_1_1Extended2DPoint.html" title="A point in the cartesian space as defined by its floating point pixel coordinates, and its integral cartesian depth.">Extended2DPoint</a> set.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">input</td><td>an <a class="el" href="structDepthSense_1_1Extended2DPoint.html" title="A point in the cartesian space as defined by its floating point pixel coordinates, and its integral cartesian depth.">Extended2DPoint</a> array </td></tr>
    <tr><td class="paramname">output</td><td>a user-allocated array of <a class="el" href="structDepthSense_1_1UV.html" title="UV coordinates.">UV</a> coordinates </td></tr>
    <tr><td class="paramname">npoints</td><td>the number of points to be transformed</td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt><b>Exceptions:</b></dt><dd>
  <table class="exception">
    <tr><td class="paramname">std::bad_alloc</td><td>not enough memory to perform the requested operation </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a31869d0d41006e456614154b5581dce5"></a><!-- doxytag: member="DepthSense::ProjectionHelper::getUVMapping" ref="a31869d0d41006e456614154b5581dce5" args="(const FPExtended2DPoint *input, UV *output, int32_t npoints)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classDepthSense_1_1ProjectionHelper.html#a87c71ad33fcc20ff195afb4ab7d8384e">DepthSense::ProjectionHelper::getUVMapping</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structDepthSense_1_1FPExtended2DPoint.html">FPExtended2DPoint</a> *&#160;</td>
          <td class="paramname"><em>input</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structDepthSense_1_1UV.html">UV</a> *&#160;</td>
          <td class="paramname"><em>output</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>npoints</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Computes the <a class="el" href="structDepthSense_1_1UV.html" title="UV coordinates.">UV</a> mapping of a <a class="el" href="structDepthSense_1_1FPExtended2DPoint.html" title="A point in the cartesian space as defined by its floating point pixel coordinates, and its floating point cartesian depth.">FPExtended2DPoint</a> set.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">input</td><td>a <a class="el" href="structDepthSense_1_1FPExtended2DPoint.html" title="A point in the cartesian space as defined by its floating point pixel coordinates, and its floating point cartesian depth.">FPExtended2DPoint</a> array </td></tr>
    <tr><td class="paramname">output</td><td>a user-allocated array of <a class="el" href="structDepthSense_1_1UV.html" title="UV coordinates.">UV</a> coordinates </td></tr>
    <tr><td class="paramname">npoints</td><td>the number of points to be transformed</td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt><b>Exceptions:</b></dt><dd>
  <table class="exception">
    <tr><td class="paramname">std::bad_alloc</td><td>not enough memory to perform the requested operation </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a76554ed0ef4add10cbe3d2934091f064"></a><!-- doxytag: member="DepthSense::ProjectionHelper::setStereoCameraParameters" ref="a76554ed0ef4add10cbe3d2934091f064" args="(StereoCameraParameters parameters)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classDepthSense_1_1ProjectionHelper.html#a76554ed0ef4add10cbe3d2934091f064">DepthSense::ProjectionHelper::setStereoCameraParameters</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structDepthSense_1_1StereoCameraParameters.html">StereoCameraParameters</a>&#160;</td>
          <td class="paramname"><em>parameters</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Sets the system model parameters to use in the computations.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">parameters</td><td>the system model parameters to use (see <a class="el" href="structDepthSense_1_1DepthNode_1_1NewSampleReceivedData.html#ae20a845a532360ca419ba267a088c87f" title="the system model parameters that were in effect at the time of capture">DepthSense::DepthNode::NewSampleReceivedData::stereoCameraParameters</a>)</td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt><b>Exceptions:</b></dt><dd>
  <table class="exception">
    <tr><td class="paramname">std::bad_alloc</td><td>not enough memory to perform the requested operation </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
</div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Properties</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Tue Feb 10 2015 22:37:23 for DepthSense SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
